package de.justphil.tcg.tcgserver.game.mechanics.property;

import java.util.LinkedList;

public class PropertyList extends LinkedList<Property> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4922699699470475505L;

	@Override
	public String toString() {

		StringBuffer result = new StringBuffer();

		for (int i = 0; i < size() - 1; i++) {

			result.append('(');
			result.append(get(i));
			result.append("),(");
		}
		if (size() > 0) {
			
			result.append(getLast());
			result.append(')');
		}

		return new String(result);
	}
}
